package com.ideaction.datacertify;

import com.alibaba.fastjson.JSONObject;
import com.ideaction.globalconst.Result;

/**
 * 客户端字段数量检查,字段数量只能增加不能减少
 */
public class PlayerClientDataCountCertifier extends DataCertifier{
    
    
    @Override
    public Result dataCertify(JSONObject upData, JSONObject oldData, long passTime, long createTime, String ip) {
        //TODO
        Result r = Result.build();
        //字段有减少,给出提示不能进行保存
//        if(upData.keySet().size()<oldData.keySet().size()){
//            r.putFalse();
//            r.put("key","notice");
//        }
        return r;
    }
    
    @Override
    public boolean canCertify(Object... params) {
        return false;
    }
}
